home *** CD-ROM | disk | FTP | other *** search
/ EnigmA Amiga Run 1995 October / EnigmA AMIGA RUN 01 (1995)(G.R. Edizioni)(IT)[!][issue 1995-10][Aminet 7].iso / Aminet / comm / tcp / HyperMail102.lha / HyperMail / mem.c < prev    next >
C/C++ Source or Header  |  1995-06-18  |  359b  |  23 lines

  1. /*
  2. ** Copyright (C) 1994, Enterprise Integration Technologies Corp.        
  3. ** All Rights Reserved.
  4. ** Kevin Hughes, kevinh@eit.com 
  5. ** 7/14/94
  6. */
  7.  
  8. #include "hypermail.h"
  9. #include "mem.h"
  10.  
  11. /* Just a tiny malloc() error checker!
  12. */
  13.  
  14. void *emalloc(i)
  15.      int i;
  16. {
  17.     void *p;
  18.  
  19.     if ((p = (void *) malloc(i)) == NULL)
  20.         progerr("Ran out of memory!");
  21.     return p;
  22. }
  23.